<template>
  <div class="shop">
    <img :src="item.showLarge.img" alt="" />
    <p>{{ item.title }}</p>
    <h3>{{item.price}}</h3>
  </div>
</template>

<script>
export default {
  name: "shop",
  props: ["item"],
};
</script>

<style lang="scss" scoped>
.shop {
  width: 45%;
  height: 260px;
  img {
    width: 100%;
    height: 200px;
  }
  p {
    width: 100%;
    height: 20px;
    line-height: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  h3{
      color: red;
      width: 100%;
      text-align: center;
  }
}
</style>